package com.mfangsoft.zhuangjialong.integration.customer.mapper;

import com.mfangsoft.zhuangjialong.common.model.Page;
import com.mfangsoft.zhuangjialong.common.utils.stereotype.WriterRepository;
import com.mfangsoft.zhuangjialong.integration.customer.model.Customer;
import com.mfangsoft.zhuangjialong.integration.customer.model.CustomerAddress;
import com.mfangsoft.zhuangjialong.integration.customer.model.CustomerInfo;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

@WriterRepository
public interface CustomerMapper {
	List<Map<String, Object>> selectCustomerPage(Page<Map<String, Object>> page);

	CustomerInfo selectCustomerDetail(Map<String, Object> map);

	List<CustomerAddress> selectCustomerAddress(Integer customerId);

	List<Map<String, Object>> selectShopSeller(Integer shopId);

	Integer addCustomerSeller(Map<String, Object> map);

	void updateCustomerSeller(Map<String, Object> map);
	
	Map<String,Object> selectCustomerInstallAddress(Integer customerId);
	
	String selectCodeName(String code);
	
	List<Map<String,Object>> selectFilialeByCode(String region_code);
	List<Map<String,Object>> selectShopByCode(Map<String,Object> region_code);
	
	String selectRegionCodeByShopId(Integer shopId);
	
	void updateCustomerOrderSeller(Map<String,Object> map);
	
	Integer updateCustomerProperty(Map<String,Object> map);
	
	Map<String,Object> selectCustomerProperty(Integer customerId);
	
	List<Map<String,Object>> selectEareById(List<Long> list);
}